package com.aaa.service.impl;

import com.aaa.dao.ZcglRentassetDao;
import com.aaa.entity.ZcglRentasset;
import com.aaa.service.ZcglRentassetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * (ZcglRentasset)表服务实现类
 *
 * @author makejava
 * @since 2021-02-20 10:10:46
 */
@Service("zcglRentassetService")
public class ZcglRentassetServiceImpl extends ServiceImpl<ZcglRentassetDao, ZcglRentasset> implements ZcglRentassetService {

    @Autowired
    private ZcglRentassetDao dao;


    @Override
    public boolean delete(String assetNumber) {
        boolean del =dao.delByassetNumber(assetNumber);
        return del;
    }

    @Override
    public int addRentasset(ZcglRentasset add) {
            int a = dao.addRentasset(add);
            return a;
    }

    @Override
    public int updateRentasset(ZcglRentasset update) {
        int a = dao.updateRentasset(update);
        return a ;
    }
}